class Status extends Actor;

var() int duration; //turns the effect will persist
var() int effect; //value of ailments effect. poison damage/turn, total change in characters attack, etc.

function int getEffect()
{
   return effect;
}

function setEffect(int power)
{
   effect = power;
}

function int getDurration()
{
   return duration;
}

function setDurration(int turns)
{
   duration = turns;
}

function decrementDurration()
{
   duration -=1;
   if (duration <= 0)
   {
      effect = 0;
   }
}

defaultproperties
{
   duration = 0;
   effect = 0;
}
